package com.springboot.demo.singleton;

/**
 * 单例测试demo
 *
 * @author supu
 * @date 2019-06-20 14:51
 **/
public class SingletonDemo {
    public static void main(String[] args) {
        /*System.out.println(Singleton.INSTANCE);
        System.out.println(Singleton.INSTANCE);
        System.out.println(Singleton.INSTANCE);
        System.out.println(Singleton.INSTANCE);
        System.out.println(Singleton.INSTANCE);
        System.out.println(Singleton.getInstance());
        System.out.println(Singleton.getInstance());*/
        System.out.println(SingletonDcl.getInstance());
        System.out.println(SingletonDcl.getInstance());
        System.out.println(SingletonDcl.getInstance());
    }
}
